<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="description" content="">
		<meta name="author" content="">

		<title>登录</title>
		<!-- Bootstrap core CSS -->
		<link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
		<!-- Custom styles for this template -->
		<link th:href="@{/css/signin.css}" rel="stylesheet">

		<link th:href="@{/css/index.css}" rel="stylesheet">

		<link rel="stylesheet" media="screen and (max-width: 718px)" href="smallscreen.css" />


	</head>
	<body class="text-center" >
		<form class="form-signin" th:action="@{/user/login}">
			<img class="mb-4" th:src="@{/img/title.jpg}" style="border-radius: 80px" alt="" width="85" height="85">
			<h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
			<!--如果msg的值为空，则不显示消息-->
			<p th:text="${msg}" th:if="${msg}" style="color: red"></p>
			<label class="sr-only">Username</label>
			<input type="text" name="username" class="form-control" placeholder="username" required="" autofocus="">
			<label class="sr-only">Password</label>
			<input type="password" name="password" class="form-control" placeholder="password" required="">
			<div class="checkbox mb-3">
				<label>
          <input type="checkbox" value="remember-me" > Remember me
        </label>
			</div>
			<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
			<p class="mt-5 mb-3 text-muted">© 2021-2022</p>
		</form>
    </body>

	</body>

</html>